Generate a Random PIN

Command:

Generate a random PIN of 4 to 12 digits.

Notes:

If the PIN length is not defined, a PIN of four digits is generated.

The PIN length selected must not exceed the value selected in the CS (Configure Security) console command.

 

Field

Length & Type

Details

COMMAND MESSAGE

Message header

m A

(Subsequently returned to the Host unchanged).

Command code

2 A

Value JA.

Account number

12 N

The 12 right-most digits of the account number, excluding the check digit.

PIN length

2 N

Optional. In the range 04 to 12. If not present, a PIN of 4 digits is generated.

End message delimiter

1 C

Optional. Must be present if a message trailer is present. Value X’19.

Message trailer

n A

Optional. Maximum length 32 characters.

 RESPONSE MESSAGE

Message header

n A

Returned to the Host unchanged.

Response code

2 A

Value JB.

Error code

2 N

00 : No errors

13 : LMK error; report to supervisor

15 : Error in input data or invalid PIN length

24 : PIN length = or > encrypted PIN length

PIN

L N or LH

The derived PIN encrypted under LMK pair 02-03.

End message delimiter

1 C

Present only if present in the command message. Value X’19.

Message trailer

n A

Present only if present in the command message. Maximum length 32 characters.